import Vue from 'vue'
import ViewUI from 'view-design'
import ElementUI from 'element-ui'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
// 引入全局样式
import 'normalize.css/normalize.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'view-design/dist/styles/iview.css'
import '@/styles/index.scss'

import App from './App'
import store from './store'
import router from './router'
import axios from 'axios'
import '@/icons' // icon
import '@/permission' // permission control
import Component from '@/components'
import VueCoreVideoPlayer from 'vue-core-video-player'

Vue.prototype.$http = axios
Vue.use(VueCoreVideoPlayer)// 视频播放插件
Vue.use(Component) // 注册自己的插件
// set ElementUI lang to EN
// Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui，按如下方式声明
Vue.use(ElementUI)
Vue.use(ViewUI)
Vue.config.productionTip = false

// 引入混入对象
import checkPermission from '@/mixin/checkPermission'

Vue.mixin(checkPermission)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
